textview: Fix compiler warning
authorBenjamin Otte <otte@redhat.com>
Mon, 7 Jul 2014 17:41:21 +0000 (19:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 7 Jul 2014 18:06:39 +0000 (20:06 +0200)
No need to use braces anymore.

gtk/gtktextview.c

index 79c4a8e3d7b69f05f6ff6ab960d950d2cca29b60..b42d95a970f3a8b54c67316b2ccaf6ac4ad02028 100644 (file)
@@ -2209,10 +2209,7 @@ gtk_text_view_scroll_to_iter (GtkTextView   *text_view,
   retval = (current_y_scroll != gtk_adjustment_get_value (text_view->priv->vadjustment))
            || (current_x_scroll != gtk_adjustment_get_value (text_view->priv->hadjustment));
 
-  if (retval)
-    DV(g_print (">Actually scrolled ("G_STRLOC")\n"));
-  else
-    DV(g_print (">Didn't end up scrolling ("G_STRLOC")\n"));
+  DV(g_print (">%s ("G_STRLOC")\n", retval ? "Actually scrolled" : "Didn't end up scrolling"));
   
   return retval;
 }